package com.my.ecommercesystem.service;

import com.github.pagehelper.Page;
import com.my.ecommercesystem.dto.OrderDto;
import com.my.ecommercesystem.entity.Order;
import com.my.ecommercesystem.entity.Order_Item;

import java.util.List;

public interface OrderService {
    Page<OrderDto> queryAllOrder(Integer page, Integer size, Integer user_id);

    /**
     * 返回用户订单数量
     * @param user_id
     * @return
     */
     long getUserOrderCount(Integer user_id);

     List<Order_Item> getOrderItem(String code);

     int freshOrderStatus(String status,String code);
}
